home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- #
- # linkmerge-weekly -- weekly run of linkmerge from cron to generate
- # RiceInfo's "Information by Subject Area" subtree
- #
- # THIS IS JUST A MODEL!! You should re-write it considerably to meet
- # your own site's needs.
- #
- # History:
- # 03/18/93 PASR Original version.
- # 04/09/93 PASR Added some directories from the Well.
- #
- #---------------------------------------------------------------------
-
- set MERGE="/chico-b/cwis/bin/linkmerge"
- set SUBJDIR="/chico-b/cwis/gopher/world/Subject"
-
- if ( -f $SUBJDIR/Aerospace/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Aerospace/.mergelinks $SUBJDIR/.oldlinks/Aerospace
- endif
- $MERGE > $SUBJDIR/Aerospace/.mergelinks <<'EOF'
- merge 1/catalog/aero flubber.ciesin.org 70
- 'EOF'
-
- if ( -f $SUBJDIR/Agriculture/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Agriculture/.mergelinks $SUBJDIR/.oldlinks/Agriculture
- endif
- $MERGE > $SUBJDIR/Agriculture/.mergelinks <<'EOF'
- merge 1/.dir/ams.taes.ag.resource tamuts.tamu.edu 70
- merge 1/catalog/Agriculture flubber.ciesin.org 70
- merge 1/catalog/Forestry flubber.ciesin.org 70
- merge 1/Wide Area Information Services databases/Agriculture pinus.slu.se 70
- merge 1/Selected/Agriculture hunter.unr.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Anth/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Anth/.mergelinks $SUBJDIR/.oldlinks/Anth
- endif
- $MERGE > $SUBJDIR/Anth/.mergelinks <<'EOF'
- merge 1/.dir/ethnic.dir tamuts.tamu.edu 70
- merge 1/Wide Area Information Services databases/Anthropology pinus.slu.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/Arts/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Arts/.mergelinks $SUBJDIR/.oldlinks/Arts
- endif
- $MERGE > $SUBJDIR/Arts/.mergelinks <<'EOF'
- merge 1/.dir/fineart.dir tamuts.tamu.edu 70
- merge 1/.dir/music.dir tamuts.tamu.edu 70
- merge 1/Subject Tree/Arts sunic.sunet.se 70
- merge 1/library/disciplines/arts dewey.lib.ncsu.edu 70
- merge 1/art nkosi.well.sf.ca.us 70
- 'EOF'
-
- if ( -f $SUBJDIR/Astronomy/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Astronomy/.mergelinks $SUBJDIR/.oldlinks/Astronomy
- endif
- $MERGE > $SUBJDIR/Astronomy/.mergelinks <<'EOF'
- merge 1/.dir/astronomy.dir tamuts.tamu.edu 70
- merge 1/catalog/Astronomy flubber.ciesin.org 70
- merge 1/library/disciplines/astronomy dewey.lib.ncsu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Biology/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Biology/.mergelinks $SUBJDIR/.oldlinks/Biology
- endif
- # The helix stop entry is for Current Contents.
- $MERGE > $SUBJDIR/Biology/.mergelinks <<'EOF'
- merge 1/topic weeds.mgh.harvard.edu 70
- merge 1/.dir/biology.dir tamuts.tamu.edu 70
- merge 1/.dir/botany.dir tamuts.tamu.edu 70
- merge 1/catalog/Biology flubber.ciesin.org 70
- merge 1/Wide Area Information Services databases/Biology pinus.slu.se 70
- stop 1/ helix.nih.gov 72
- 'EOF'
-
- #if ( -f $SUBJDIR/Census/.mergelinks ) then
- # /bin/mv -f $SUBJDIR/Census/.mergelinks $SUBJDIR/.oldlinks/Census
- #endif
- #$MERGE > $SUBJDIR/Census/.mergelinks <<'EOF'
- #merge 1/.dir/census.dir tamuts.tamu.edu 70
- #'EOF'
-
- if ( -f $SUBJDIR/Chemistry/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Chemistry/.mergelinks $SUBJDIR/.oldlinks/Chemistry
- endif
- $MERGE > $SUBJDIR/Chemistry/.mergelinks <<'EOF'
- merge 1/.dir/chemistry.dir tamuts.tamu.edu 70
- merge 1/catalog/Chemistry flubber.ciesin.org 70
- merge 1/library/disciplines/chemistry dewey.lib.ncsu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Computing/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Computing/.mergelinks $SUBJDIR/.oldlinks/Computing
- endif
- $MERGE > $SUBJDIR/Computing/.mergelinks <<'EOF'
- merge 1/Computer chico.rice.edu 70
- merge 1/.dir/compsci.dir tamuts.tamu.edu 70
- merge 1/.dir/computing.dir tamuts.tamu.edu 70
- merge 1/catalog/computers flubber.ciesin.org 70
- merge 1/catalog/computing flubber.ciesin.org 70
- merge 1/library/disciplines/computer dewey.lib.ncsu.edu 70
- merge 1/Wide Area Information Services databases/computers-and-software pinus.slu.se 70
- merge 1/Selected/Computing hunter.unr.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Economics/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Economics/.mergelinks $SUBJDIR/.oldlinks/Economics
- endif
- $MERGE > $SUBJDIR/Economics/.mergelinks <<'EOF'
- merge 1/.dir/economics.dir tamuts.tamu.edu 70
- merge 1/catalog/Economics flubber.ciesin.org 70
- 'EOF'
-
- if ( -f $SUBJDIR/Education/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Education/.mergelinks $SUBJDIR/.oldlinks/Education
- endif
- $MERGE > $SUBJDIR/Education/.mergelinks <<'EOF'
- merge 1/.dir/education.dir tamuts.tamu.edu 70
- merge 1/catalog/Education flubber.ciesin.org 70
- merge 1/Wide Area Information Services databases/Education pinus.slu.se 70
- merge 1/Subject Tree/Learning Sciences sunic.sunet.se 70
- merge 1/Selected/Schools hunter.unr.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Environment/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Environment/.mergelinks $SUBJDIR/.oldlinks/Environment
- endif
- $MERGE > $SUBJDIR/Environment/.mergelinks <<'EOF'
- merge 1/.dir/material.safety.dir tamuts.tamu.edu 70
- merge 1/catalog/Environment flubber.ciesin.org 70
- merge 1/Wide Area Information Services databases/envsci pinus.slu.se 70
- merge 1/Environment nkosi.well.sf.ca.us 70
- 'EOF'
-
- if ( -f $SUBJDIR/Geography/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Geography/.mergelinks $SUBJDIR/.oldlinks/Geography
- endif
- $MERGE > $SUBJDIR/Geography/.mergelinks <<'EOF'
- merge 1/catalog/Geography flubber.ciesin.org 70
- merge 1/catalog/earth flubber.ciesin.org 70
- merge 1/Selected/Geography hunter.unr.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Geology/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Geology/.mergelinks $SUBJDIR/.oldlinks/Geology
- endif
- $MERGE > $SUBJDIR/Geology/.mergelinks <<'EOF'
- merge 1/catalog/geology flubber.ciesin.org 70
- merge 1/library/disciplines/earth dewey.lib.ncsu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Government/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Government/.mergelinks $SUBJDIR/.oldlinks/Government
- endif
- $MERGE > $SUBJDIR/Government/.mergelinks <<'EOF'
- merge 1/.dir/polsci.dir tamuts.tamu.edu 70
- merge 1/.dir/law.dir tamuts.tamu.edu 70
- merge 1/.dir/govt.dir tamuts.tamu.edu 70
- merge 1/catalog/Government flubber.ciesin.org 70
- merge 1/catalog/Law flubber.ciesin.org 70
- merge 1/catalog/Politics flubber.ciesin.org 70
- merge 1/library/disciplines/government dewey.lib.ncsu.edu 70
- merge 1/English/Topics/Civil-liberties otax.tky.hut.fi 70
- merge 1/Subject Tree/Law sunic.sunet.se 70
- merge 1/Subject Tree/Politics sunic.sunet.se 70
- merge 1/Politics nkosi.well.sf.ca.us 70
- 'EOF'
-
- if ( -f $SUBJDIR/Grants/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Grants/.mergelinks $SUBJDIR/.oldlinks/Grants
- endif
- $MERGE > $SUBJDIR/Grants/.mergelinks <<'EOF'
- merge 1/ogp ricevm1.rice.edu 70
- merge 1/osr ricevm1.rice.edu 70
- merge 1/.dir/research.opport.dir tamuts.tamu.edu 70
- merge 1/Subject Tree/Grants and Funding sunic.sunet.se 70
- merge 1/Selected/Funding hunter.unr.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/History/.mergelinks ) then
- /bin/mv -f $SUBJDIR/History/.mergelinks $SUBJDIR/.oldlinks/History
- endif
- $MERGE > $SUBJDIR/History/.mergelinks <<'EOF'
- merge 1/catalog/History flubber.ciesin.org 70
- merge 1/library/disciplines/history dewey.lib.ncsu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Language/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Language/.mergelinks $SUBJDIR/.oldlinks/Language
- endif
- $MERGE > $SUBJDIR/Language/.mergelinks <<'EOF'
- merge 1/Wide Area Information Services databases/Linguistic pinus.slu.se 70
- merge 1/Subject Tree/Linguistics sunic.sunet.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/LibSci/.mergelinks ) then
- /bin/mv -f $SUBJDIR/LibSci/.mergelinks $SUBJDIR/.oldlinks/LibSci
- endif
- $MERGE > $SUBJDIR/LibSci/.mergelinks <<'EOF'
- merge 1/.dir/librsubj.dir tamuts.tamu.edu 70
- merge 1/catalog/infoscience flubber.ciesin.org 70
- merge 1/library/disciplines/library dewey.lib.ncsu.edu 70
- merge 1/Subject Tree/Library Science sunic.sunet.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/LitBooks/.mergelinks ) then
- /bin/mv -f $SUBJDIR/LitBooks/.mergelinks $SUBJDIR/.oldlinks/LitBooks
- endif
- $MERGE > $SUBJDIR/LitBooks/.mergelinks <<'EOF'
- merge 1/Ebooks/By Title joeboy.micro.umn.edu 70
- merge 1/.dir/journalism.dir tamuts.tamu.edu 70
- merge 1/library/disciplines/literature dewey.lib.ncsu.edu 70
- merge 1/Wide Area Information Services databases/Literature pinus.slu.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/Math/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Math/.mergelinks $SUBJDIR/.oldlinks/Math
- endif
- $MERGE > $SUBJDIR/Math/.mergelinks <<'EOF'
- merge 1/.dir/math.dir tamuts.tamu.edu 70
- merge 1/catalog/Mathematics flubber.ciesin.org 70
- merge 1/library/disciplines/math dewey.lib.ncsu.edu 70
- merge 1/Subject Tree/Mathematics sunic.sunet.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/Medicine/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Medicine/.mergelinks $SUBJDIR/.oldlinks/Medicine
- endif
- $MERGE > $SUBJDIR/Medicine/.mergelinks <<'EOF'
- merge 1/.dir/medicine.dir tamuts.tamu.edu 70
- merge 1/.dir/nutrition.dir tamuts.tamu.edu 70
- merge 1/catalog/Health flubber.ciesin.org 70
- merge 1/catalog/Nutrition flubber.ciesin.org 70
- merge 1/library/disciplines/medicine dewey.lib.ncsu.edu 70
- merge 1/Wide Area Information Services databases/Medicine pinus.slu.se 70
- merge 1/Subject Tree/Medicine sunic.sunet.se 70
- merge 1/Selected/Biomedical hunter.unr.edu 70
- stop 1/med/AM-J-FOREN next1.acs.umn.edu 3333
- stop 1/med/AM-J-IND-M next1.acs.umn.edu 3333
- stop 1/ag/ANAT-HISTOL next1.acs.umn.edu 3333
- stop 1/lif/B-EXP-B-MED next1.acs.umn.edu 3333
- stop 1/med/CENT-AFR-J next1.acs.umn.edu 3333
- stop 1/lif/DEVELOP-MED next1.acs.umn.edu 3333
- stop 1/lif/J-INTERN-M next1.acs.umn.edu 3333
- stop 1/med/J-INTERN-M next1.acs.umn.edu 3333
- stop 1/soc/J-PUBL-H-M next1.acs.umn.edu 3333
- stop 1/med/J-PUBL-H-M next1.acs.umn.edu 3333
- stop 1/med/J-SPORT-MED next1.acs.umn.edu 3333
- stop 1/med/J-ROY-S-MED next1.acs.umn.edu 3333
- stop 1/lif/J-ROY-S-MED next1.acs.umn.edu 3333
- stop 1/ag/J-VET-MED-B next1.acs.umn.edu 3333
- stop 1/med/MT-SINAI-J next1.acs.umn.edu 3333
- stop 1/med/N-ENG-J-MED next1.acs.umn.edu 3333
- stop 1/lif/N-ENG-J-MED next1.acs.umn.edu 3333
- stop 1/lif/NUCL-MED-BI next1.acs.umn.edu 3333
- stop 1/lif/STAT-MED next1.acs.umn.edu 3333
- stop 0/med/CENT-AFR-J/0/TRADITIONAL-MEDICINE next1.acs.umn.edu 3333 0
- stop 1/lif/TREND-CARD next1.acs.umn.edu 3333
- stop 1/lif/YALE-J-BIOL next1.acs.umn.edu 3333
- 'EOF'
-
- if ( -f $SUBJDIR/Networks/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Networks/.mergelinks $SUBJDIR/.oldlinks/Networks
- endif
- $MERGE > $SUBJDIR/Networks/.mergelinks <<'EOF'
- merge 1/Computer/AroundTheNet/Networks chico.rice.edu 70
- merge 1/catalog/network flubber.ciesin.org 70
- 'EOF'
-
- if ( -f $SUBJDIR/Oceanography/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Oceanography/.mergelinks $SUBJDIR/.oldlinks/Oceanography
- endif
- $MERGE > $SUBJDIR/Oceanography/.mergelinks <<'EOF'
- merge 1/catalog/Oceanography flubber.ciesin.org 70
- 'EOF'
-
- if ( -f $SUBJDIR/Physics/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Physics/.mergelinks $SUBJDIR/.oldlinks/Physics
- endif
- $MERGE > $SUBJDIR/Physics/.mergelinks <<'EOF'
- merge 1/.dir/physics.dir tamuts.tamu.edu 70
- merge 1/catalog/Physics flubber.ciesin.org 70
- merge 1/library/disciplines/physics dewey.lib.ncsu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/RelPhil/.mergelinks ) then
- /bin/mv -f $SUBJDIR/RelPhil/.mergelinks $SUBJDIR/.oldlinks/RelPhil
- endif
- $MERGE > $SUBJDIR/RelPhil/.mergelinks <<'EOF'
- merge 1/.dir/religion.dir tamuts.tamu.edu 70
- merge 1/.dir/philosophy.dir tamuts.tamu.edu 70
- merge 1/library/disciplines/religion dewey.lib.ncsu.edu 70
- merge 1/Subject Tree/Philosophy sunic.sunet.se 70
- 'EOF'
-
- if ( -f $SUBJDIR/SocPsy/.mergelinks ) then
- /bin/mv -f $SUBJDIR/SocPsy/.mergelinks $SUBJDIR/.oldlinks/SocPsy
- endif
- $MERGE > $SUBJDIR/SocPsy/.mergelinks <<'EOF'
- merge 1/.dir/psychology.dir tamuts.tamu.edu 70
- merge 1/library/disciplines/social dewey.lib.ncsu.edu 70
- stop nntp ls soc riceinfo.rice.edu 1103
- stop 1/soc msuinfo.cl.msu.edu 70
- 'EOF'
-
- if ( -f $SUBJDIR/Weather/.mergelinks ) then
- /bin/mv -f $SUBJDIR/Weather/.mergelinks $SUBJDIR/.oldlinks/Weather
- endif
- $MERGE > $SUBJDIR/Weather/.mergelinks <<'EOF'
- stop 0/Weather/About chico.rice.edu 70
- merge 1/Weather chico.rice.edu 70
- merge 1/.dir/weather.dir tamuts.tamu.edu 70
- merge 1/catalog/weather flubber.ciesin.org 70
- merge 1/catalog/climate flubber.ciesin.org 70
- 'EOF'
-
- exit
-
- ##########################################################################
- #
- # Leftovers -- subject directories from various sources which couldn't be
- # fit into the above scheme
-
- # ciesin leftovers
- 1Energy 1/catalog/Energy flubber.ciesin.org 70
- 1Humanities 1/catalog/Humanities flubber.ciesin.org 70
- 1Libraries 1/catalog/Libraries flubber.ciesin.org 70
- 1Molecular Biology 1/catalog/molecular flubber.ciesin.org 70
- 1Science 1/catalog/Science flubber.ciesin.org 70
- 1Social Science 1/catalog/social flubber.ciesin.org 70
- 1Society and Culture 1/catalog/society flubber.ciesin.org 70
-
- # ncsu leftovers
- 1Agriculture and Biology 1/library/disciplines/agriculture dewey.lib.ncsu.edu 70
- 1Earth Science 1/library/disciplines/earth dewey.lib.ncsu.edu 70
-
- # pinus leftovers
- #1Archie databases 1/Wide Area Information Services databases/archie-dbs pinus.slu.se 70
- #1Bibliographies 1/Wide Area Information Services databases/Bibliographies pinus.slu.se 70
- #1FTP archives 1/Wide Area Information Services databases/ftp-archives pinus.slu.se 70
- #1Graphics 1/Wide Area Information Services databases/Graphics pinus.slu.se 70
- #1Library catalogues 1/Wide Area Information Services databases/library-catalogues pinus.slu.se 70
- #1Miscellaneous 1/Wide Area Information Services databases/Miscellaneous pinus.slu.se 70
- #1Newsgroup and Mailing-list archives 1/Wide Area Information Services databases/newsgroup-archives pinus.slu.se 70
- #1Pacific Studies 1/Wide Area Information Services databases/pacstud pinus.slu.se 70
- #1Social Science 1/Wide Area Information Services databases/socsci pinus.slu.se 70
- #1Whois 1/Wide Area Information Services databases/Whois pinus.slu.se 70
-
- # sunet leftovers
- #0A_List_of_Contents 0/Subject Tree/A_List_of_Contents sunic.sunet.se 70
- #0About the Subject Tree 0/Subject Tree/About the Subject Tree sunic.sunet.se 70
- #1Biology subject tree 1/ gopher.embnet.unibas.ch 70
- #1Conferences, (from Norway) 1/Subject Tree/Conferences, (from Norway) sunic.sunet.se 70
- #1Drugs 1/English/Topics/Drugs otax.tky.hut.fi 70
- #1Geography and Oceanography 1/Subject Tree/Geography and Oceanography sunic.sunet.se 70
- #1LPF 1/English/Topics/LPF otax.tky.hut.fi 70
- #1Linux 1/English/Topics/Linux otax.tky.hut.fi 70
- #1Networking and Computing 1/Subject Tree/Networking and Computing sunic.sunet.se 70
- #1On Usenet 1/Subject Tree/On Usenet sunic.sunet.se 70
- #1WAIS Subject Tree (via SLU, Sweden) 1/Wide Area Information Services databases pinus.slu.se 70
- #1Weather-Astronomy-Navigation 1/Subject Tree/Weather-Astronomy-Navigation sunic.sunet.se 70
-
- # unr leftovers
- #1Humanities 1/Selected/Humanities hunter.unr.edu 70
- #1Science 1/Selected/Science hunter.unr.edu 70
- #1Social Sciences 1/Selected/Social hunter.unr.edu 70
-
- # tamu leftovers
- #1Bulletin Boards 1/.dir/bbs.dir tamuts.tamu.edu 70
- # 1/.dir/census.dir tamuts.tamu.edu 70
- #1Comics 1/.dir/comics.dir tamuts.tamu.edu 70
- #1Disability Information 1/.dir/disability.dir tamuts.tamu.edu 70
- #1Earth Science 1/.dir/earthsci.dir tamuts.tamu.edu 70
- #1Images 1/.dir/images.dir tamuts.tamu.edu 70
- #1Software 1/.dir/software.dir tamuts.tamu.edu 70
- #1Sounds 1/.dir/sounds.dir tamuts.tamu.edu 70
- #1Subject Listings from other Gopher Servers 1/.dir/subject.gophers.dir tamuts.tamu.edu 70
- #1Transportation 1/.dir/transportation.dir tamuts.tamu.edu 70
- #1Travel 1/.dir/travel.dir tamuts.tamu.edu 70
-
- # end of linkmerge-weekly script
-